﻿//$(document).ready(function() {

//    $.getJSON('<%= Url.Action("EventDates", "Json")%>', null,
//     function(result) {
//         initCalendar(result);
//     });
//});

//function initCalendar(dateList) {
//    var padnugEventDates = [];
//    for (i = 0; i < dateList.length; i++) {
//        padnugEventDates.push(new Date(dateList[i]));
//    }
//    $('#date-input-3').calendar({
//        parentElement: '#date-input-3-container',
//        dateFormat: '%m/%d/%Y',
//        firstDayOfWeek: 0,
//        selectHandler: getPadnugEvent,
//        eventDates: padnugEventDates
//    });
//}
//function getPadnugEvent(sender, date) {
//    document.location.href = "/Events/EventsOnDate?eventDate=" + date;
//}

function showHideElement(id) {
    var element = $('#' + id)[0];
    var show = element.style.display == 'inline' ? 'none' : 'inline';
    element.style.display = show;
}

function hideElement(id) {
    var element = $('#' + id)[0];
    element.style.display = 'none';
}

function showElement(id) {
    var element = $('#' + id)[0];
    element.style.display = 'inline';
}


